package com.shangze.test.presenter.fragment;

import android.content.Context;
import com.shangze.test.base.BasePresenter;
import com.shangze.test.presenter_view.EntityView;

/**
 * Created by yjm on 2017/10/17.
 */
public class HomePresenter extends BasePresenter<EntityView>{

//    private Book mBook;
    Context mContext;

    public HomePresenter(Context context) {
        this.mContext = context;
    }

    @Override
    public void attachView(EntityView mvpView) {
        super.attachView(mvpView);
    }

    public void getSearchBooks(String name, String tag, int start, int count) {
        /*addSubscription(apiStores.getSearchBooks(name, tag, start, count),
                new ApiCallback<Book>() {
                    @Override
                    public void onSuccess(Book model) {
                        LogTool.i("1111数据成功：" + model.toString());
                        view.onSuccess(0, model);
                    }

                    @Override
                    public void onFailure(String msg) {
                        LogTool.i("数据失败：" + msg);
                        view.onError(0, msg);
                    }

                    @Override
                    public void onFinish() {
                        LogTool.i("结束：");
                    }

                });*/

    }
}
